<?php if (!defined('THINK_PATH')) exit();?><div class="input-prepend" style="margin-left:15px">
<span class="add-on">分组名称</span>
<input class="span2" id="prependedInput" type="text" placeholder="分组名称" name="group">
<input type="submit" class="btn" value="添加" style="margin-left:15px" onclick="addGrounp('__APP__/Contacts/addGroup');">
</div>
<script>
	//添加分组事件
	function addGrounp(url){
	//	alert(getInputValueByName('group'));
		$.getJSON(url,{group_name:getInputValueByName('group')},function(json){
			$.warn('提示',json.info);
		});
	}
</script>